<?php $this->load->view('header'); ?>
<div id="content">
<div class="column full">
		
		<div class="box">
		<div class="box-header"><?php echo get_title();?></div>
		<div class="box-content">

        <?php if ($uri_to_assoc['tipe'] == 'inbox') : ?>
        	<?php echo isAccess('myuser','message','message') ? anchor('myuser/message/view/tipe/inbox', '<span class="icon_text pack _41"></span>Inbox', 'class="button white fr" style="margin-left:10px;"') : ''; ?>
        <?php endif;?>
        
        <?php if ($uri_to_assoc['tipe'] == 'outbox') : ?>
        	<?php echo isAccess('myuser','message','message') ? anchor('myuser/message/view/tipe/outbox', '<span class="icon_text pack _40"></span>Outbox', 'class="button white fr" style="margin-left:10px;"') : ''; ?>
        <?php endif;?>
        &nbsp;
        
        <?php if ($uri_to_assoc['tipe'] == 'inbox') : ?>
        	<?php echo isAccess('myuser','message','add') ? anchor('myuser/message/add/tipe/' . $uri_to_assoc['tipe'] . '/userId/'.get_data($dataDetail,'userIdFrom') , '<span class="icon_text addnew"></span>Balas Pesan', 'class="button white fr"') : ''; ?>
        <?php endif?>
        
		<div class="clear"></div>

			<!-- From -->
			<?php if ($uri_to_assoc['tipe'] == 'inbox') : ?>
			<div class="width10 fl">
			<label class="form-label"><br />Dari</label>
			</div>
			<div class="width90 fr">
                <br /><?php echo get_data($dataDetail,'userNameFrom');?>
			</div>
			<div class="clear"></div>
			<?php endif?>
			
			<!-- To -->
			<?php if ($uri_to_assoc['tipe'] == 'outbox') : ?>
			<div class="width10 fl">
			<label class="form-label"><br />Kepada</label>
			</div>
			<div class="width90 fr">
                <br /><?php echo get_data($dataDetail,'userNameTo');?>
			</div>
			<div class="clear"></div>
			<?php endif?>
			<!-- New line -->

			<div class="width10 fl">
			<label class="form-label"><br />Judul</label>
			</div>
			<div class="width90 fr">
                <br /><?php echo get_data($dataDetail,'userMessageTitle');?>
			</div>
			<div class="clear"></div>
			<!-- New line -->

            <div class="width10 fl">
            <label class="form-label"><br />Message</label>
            </div>
            <div class="width90 fr">
                <br /><?php echo form_textarea(array('name'=>'message','id'=>'message','value'=>get_data($dataDetail,'userMessageContent'), 'rows'=>'10','cols'=>90, 'disable'=>'disable')); ?>
            </div>
            <div class="clear"></div>
            <!-- New line -->
            <br /><br />
            
		</div>
		</div>
	
	</div>

<?php $this->load->view('footer'); ?>